<html>
    <head>
        <title>用户列表</title>
        <style>
            table{
                width: 50%;
                text-align: center;
            }
            table th, table td{
                border: 1px solid darkgray;
                padding: 2px;
            }
            .page {
                float: right;
                font-size: 14px;
                color: darkgray
            }
        </style>
    </head>
    <body>
        <h1>全部用户</h1>
        {% if users.curSize > 0 %}
            <table>
                <tr>
                    <th>姓名</th>
                    <th>邮箱</th>
                    <th>头像</th>
                </tr>
                {% for u in users.resList %}
                    <tr>
                        <td>{{u.name}}</td>
                        <td>{{u.email}}</td>
                        <td><img src="{{u.image}}" alt="{{u.name}}"></td>
                    </tr>
                {% endfor %}
                <tr>
                    <td colspan="3">
                        <span class="page">第{{users.curPage}}页，共{{users.totalPage}}页</span>
                    </td>
                </tr>
            </table>
        {% else %}
            <p>暂时没有用户哦~~</p>
        {% endif %}
    </body>
</html>